<?php
require_once("../class/mysql.class.php");
$obj = new Mysql();
$q = intval($_GET['q']);
$tab_article=array();
$req="SELECT * FROM `st_article` WHERE id_article='".$q."'";
$obj = new Mysql ();
$result = mysql_query($req);
	while($row = mysql_fetch_object($result))
    {
		$tab_article['designation'] = $row->designation;
		$tab_article['type'] = $row->id_type;
		$tab_article['fournisseur'] = $row->id_fournisseur;
		$tab_article['unit_stock'] = $row->id_unite_stockage;
		$tab_article['emp'] = $row->id_lieu;
		$tab_article['devise'] = $row->id_type_monnaie;	
	}
	echo json_encode($tab_article);
?>